#region Imported Namespaces



using System.Windows;
using System.Windows.Controls;



#endregion


namespace WtfManager.Controls
{
  public class GenericView: ViewBase
  {
    #region Fields



    public static readonly DependencyProperty ItemContainerStyleProperty =
      ItemsControl.ItemContainerStyleProperty.AddOwner(typeof(GenericView));

    public static readonly DependencyProperty ItemsPanelProperty =
      ItemsControl.ItemsPanelProperty.AddOwner(typeof(GenericView));

    public static readonly DependencyProperty ItemTemplateProperty =
      ItemsControl.ItemTemplateProperty.AddOwner(typeof(GenericView));



    #endregion


    #region Properties/Indexers



    protected override object DefaultStyleKey
    {
      get
      {
        return new ComponentResourceKey(GetType(), "genericView");
      }
    }

    public Style ItemContainerStyle
    {
      get
      {
        return (Style)GetValue(ItemContainerStyleProperty);
      }
      set
      {
        SetValue(ItemContainerStyleProperty, value);
      }
    }


    public ItemsPanelTemplate ItemsPanel
    {
      get
      {
        return (ItemsPanelTemplate)GetValue(ItemsPanelProperty);
      }
      set
      {
        SetValue(ItemsPanelProperty, value);
      }
    }


    public DataTemplate ItemTemplate
    {
      get
      {
        return (DataTemplate)GetValue(ItemTemplateProperty);
      }
      set
      {
        SetValue(ItemTemplateProperty, value);
      }
    }



    #endregion
  }
}